[ASP.NET] Generating images: Alternate font by User Agent (OS)

Posted by sinni800 on Stack Overflow See other posts from Stack Overflow or by sinni800
Published on 2010-06-07T07:35:16Z Indexed on 2010/06/07 7:42 UTC
Read the original article Hit count: 200

Filed under:
|
|
|
|

Hello,

I need to generate small images for certain parts of text. Those will have to fit into the text seamlessly. I know I can not make up for every browser font settings available, but how do I have to check for Linux, Mac and Windows users depending on the user agent? I want to use the right font (of the three "Verdana, Arial, Helvetiva") for the right user agent OS.

So:

  1. How do I check for the OS? What do I have to compare to in the user agent?
  2. Where can I get the other two fonts. Does the Windows-included Verdana look the same as the one used on Linux (or, is it free anyway? I don't know much about fonts)? Where do I get Helvetica? Is it Mac OS licensed?

Any code examples can be in either c# or VB.NET. I can read both.

Thank you in advance.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about image